import java.util.Scanner;

/*
   调用方法判断奇偶数
 */
public class MothodTest01 {
    public static void main(String[] args) {
        System.out.println("请输入需要判断的数:");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        mothod(num);
    }


    public static void mothod(int num) {
        if (num % 2 == 0) {
            System.out.println(num + "是偶数");
        } else {
            System.out.println(num + "是奇数");
        }
    }
}
